﻿// Test_BadPoint_Dlg.cpp: 实现文件
//

#include "pch.h"
#include "SakerProject.h"
#include "Test_BadPoint_Dlg.h"
#include "afxdialogex.h"

#include "xxWidgetControl.h"
#include "xxFileProcess.h"
#include "mmFile_Paras.h"


// CTest_BadPoint_Dlg 对话框
CTest_BadPoint_Dlg * m_Test_BadPoint;

IMPLEMENT_DYNAMIC(CTest_BadPoint_Dlg, CDialogEx)

CTest_BadPoint_Dlg::CTest_BadPoint_Dlg(CWnd* pParent /*=nullptr*/)
	: CDialogEx(IDD_Test_BadPoint, pParent)
{

}

CTest_BadPoint_Dlg::~CTest_BadPoint_Dlg()
{
}

void CTest_BadPoint_Dlg::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(CTest_BadPoint_Dlg, CDialogEx)
	ON_BN_CLICKED(IDC_BUTTON_Save, &CTest_BadPoint_Dlg::OnBnClickedButtonSave)
END_MESSAGE_MAP()


// CTest_BadPoint_Dlg 消息处理程序


BOOL CTest_BadPoint_Dlg::OnInitDialog()
{
	CDialogEx::OnInitDialog();

	xx::WriteWidget(this, IDC_EDIT_LimitLow, mmTest_BadPoint.Limit_Low);
	xx::WriteWidget(this, IDC_EDIT_LimitHigh, mmTest_BadPoint.Limit_High);

	return TRUE;
}


void CTest_BadPoint_Dlg::OnBnClickedButtonSave()
{
	mmTest_BadPoint.Limit_Low = xx::DefaultWidget(this, IDC_EDIT_LimitLow, mmTest_BadPoint.iniField, L"Limit_Low", mmFile_Paras.iniModelPath(), double(0));
	mmTest_BadPoint.Limit_High = xx::DefaultWidget(this, IDC_EDIT_LimitHigh, mmTest_BadPoint.iniField, L"Limit_High", mmFile_Paras.iniModelPath(), double(0));

}
